<!--
 * @Date: 2023-03-04 12:53:10
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-04 14:57:08
 * @FilePath: \A19\frontend\src\components\FileScreen.vue
-->
<template>
    <!-- <iframe src="https://view.xdocin.com/view?src=http://43.139.162.208/603Exhibition/files/a.pdf" width="100%" height="100%" frameborder="0"></iframe> -->
    <!-- <iframe src="https://docs.google.com/gview?url=http://43.139.162.208/603Exhibition/files/a.doc&embedded=true" width="100%" height="100%" frameborder="0"></iframe> -->
    <iframe :src="`https://view.officeapps.live.com/op/view.aspx?src=${encodeURIComponent('https://www.hongyuanf.com/files/a.pdf')}`" width="100%" height="100%" frameborder="0"></iframe>
    <input ref="file" type="file" name="" id="" @change="change">
</template>

<script lang="ts" setup>
import { conf } from "@/utils/conf";
import { ref } from "vue" 

const file = ref<HTMLInputElement>()

const change = ()=>{
    console.log(file.value?.files);
}

// console.log(decodeURIComponent('http%3A%2F%2Fieee802%2Eorg%3A80%2Fsecmail%2FdocIZSEwEqHFr%2Edoc'));

</script>

<style lang="less" scoped>

</style>